.class public Lcom/waiqin365/lightwork/tracker/model/f;
.super Ljava/lang/Object;


# static fields
.field private static a:Lcom/waiqin365/lightwork/tracker/model/f;


# instance fields
.field private b:Ljava/util/ArrayList;

.field private final c:Ljava/util/ArrayList;


# direct methods
.method private constructor <init>()V
    .locals 2

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    new-instance v0, Ljava/util/ArrayList;

    const/4 v1, 0x3

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/f;->b:Ljava/util/ArrayList;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/f;->c:Ljava/util/ArrayList;

    return-void
.end method

.method public static a()Lcom/waiqin365/lightwork/tracker/model/f;
    .locals 1

    sget-object v0, Lcom/waiqin365/lightwork/tracker/model/f;->a:Lcom/waiqin365/lightwork/tracker/model/f;

    if-nez v0, :cond_0

    new-instance v0, Lcom/waiqin365/lightwork/tracker/model/f;

    invoke-direct {v0}, Lcom/waiqin365/lightwork/tracker/model/f;-><init>()V

    sput-object v0, Lcom/waiqin365/lightwork/tracker/model/f;->a:Lcom/waiqin365/lightwork/tracker/model/f;

    :cond_0
    sget-object v0, Lcom/waiqin365/lightwork/tracker/model/f;->a:Lcom/waiqin365/lightwork/tracker/model/f;

    return-object v0
.end method


# virtual methods
.method public a(I)Lcom/waiqin365/lightwork/tracker/model/aa;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/f;->b:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightwork/tracker/model/aa;

    return-object v0
.end method

.method public a(Landroid/database/DataSetObserver;)V
    .locals 2

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iget-object v1, p0, Lcom/waiqin365/lightwork/tracker/model/f;->c:Ljava/util/ArrayList;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    return-void
.end method

.method public a(Lcom/waiqin365/lightwork/tracker/model/aa;)V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/f;->b:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    invoke-virtual {p0}, Lcom/waiqin365/lightwork/tracker/model/f;->e()V

    return-void
.end method

.method public b()V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/f;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    invoke-virtual {p0}, Lcom/waiqin365/lightwork/tracker/model/f;->e()V

    return-void
.end method

.method public c()I
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/f;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    return v0
.end method

.method public d()V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/f;->c:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/f;->c:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    :cond_0
    return-void
.end method

.method public e()V
    .locals 3

    iget-object v2, p0, Lcom/waiqin365/lightwork/tracker/model/f;->c:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    move v1, v0

    :goto_0
    if-ltz v1, :cond_1

    invoke-virtual {v2, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/database/DataSetObserver;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Landroid/database/DataSetObserver;->onChanged()V

    :goto_1
    add-int/lit8 v0, v1, -0x1

    move v1, v0

    goto :goto_0

    :cond_0
    invoke-virtual {v2, v1}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;

    goto :goto_1

    :cond_1
    return-void
.end method
